find element that appears once in array